import {redirect} from "next/navigation";
import {getSession} from "@/lib/session";

export default async function Index() {
  const session = await getSession();
  if(session){
    //如果用户已登录
    return redirect("/home/user")
  }
  //如果用户未登录
  return redirect("/login")
}
